package com.gollum.system.service;

import com.gollum.common.domain.response.TableSupport;
import com.gollum.jpa.service.JpaServer;
import com.gollum.system.domain.model.SysUser;
import com.gollum.system.domain.request.SysUserRequest;
import com.gollum.system.domain.response.SysDictDataResponse;
import com.gollum.system.domain.response.SysUserResponse;

import java.util.List;
import java.util.Map;

/**
 * 系统用户
 *
 * @author Herther
 * @version 1.0.0
 * @createTime 2022年08月25日 21:55:00
 */
public interface SysUserService extends JpaServer<SysUser, Long> {

    List<SysUser> findAllTest();

    /**
     * 根据用户名查询用户
     *
     * @param username 用户名
     * @return SysUser
     * @auther: Herther
     * @version 1.0.0
     * @date: 2022/8/26 23:03
     */
    SysUser getUserByUsername(String username);

    /**
     * 分页查询用户
     *
     * @param params 查询参数
     * @return TableSupport<SysUserResponse>
     * @auther: Herther
     * @since 1.0.0
     * @date: 2022/10/13 21:53
     */
    TableSupport<SysUserResponse> listPage(SysUserRequest params);
}
